import { createI18n, useI18n } from 'vue-i18n'		//引入vue-i18n组件
import language from './getMessage'
import strConstant from '@/assets/js/str_constant'


//注册i8n实例并引入语言文件
const localeData = {
  legacy: false, // composition API
  locale: strConstant.LOCALE_ZH_CN,
  messages: language,
}
const i18n = createI18n(localeData)
export default i18n
